package com.zpc.myvideoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 视频信息管理表
 * </p>
 *
 * @author zpc
 * @since 2023/11/03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("video")
@ApiModel(value = "Video对象", description = "视频信息管理表")
public class Video {

    @ApiModelProperty("文件唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("文件名")
    @TableField("video_name")
    private String videoName;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    // format时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("封面文件名")
    @TableField("cover_name")
    private String coverName;

    @ApiModelProperty("标题")
    @TableField("video_title")
    private String videoTitle;

    @ApiModelProperty("分类")
    @TableField("video_classify")
    private String videoClassify;
}
